// 轮播图组件
<template>
  <div class="swipe">
    <van-swipe :autoplay="3000" indicator-color='#d2dae2'>
      <van-swipe-item v-for="(image, index) in images" :key="index">
        <img class="swipe-image" v-lazy="image" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  name: "Swipe",
  data() {
    return {
      // 轮播图数据
      images: [
        "https://imgoss.wkzuche.com/banner/2021/1223/53e90db2-3c34-4000-8903-26c9f038e80e.png?x-oss-process=image/resize,h_350",
        "https://imgoss.wkzuche.com/banner/2020/1112/47e56ea1-c977-477c-8986-4dd36ba169c4.png?x-oss-process=image/resize,h_350",
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.swipe {
  width: 100%;
  height: 115px;
  overflow: hidden;
  .swipe-image {
    width: 100%;
    height: 115px;
  }
}
</style>